{% extends "index_base.html" %}
{% block content %}
  <div class="content">
    <table width="95%" border="1" align="center" cellpadding="2" cellspacing="2" class="main_table" style="border=1">
      <tr>
        <th scope="col">用户名</th>
        <th scope="col">日志</th>
        <th scope="col">时间</th>
      </tr>
      {%  for obj in object_list  %}
      <tr onMouseOver="this.style.backgroundColor='#FFFBAC';" onMouseOut="this.style.backgroundColor=''">
        <td>
        {% if obj.name %}
        {{obj.name}}
        {% else %}
         {{obj.enname}}
        {% endif %}
        </td>
        <td>{{obj.content}}</td>
        <td>{{obj.times}}</td>
      </tr>
      {% endfor %}
      <tfoot>
      <tr><td colspan="8">
      <div style="text-align:center;width:75%;font-size:12px;">  
    {% if is_paginated %}   
        {% ifequal page 1 %}   
                 首页   
        {% else %}    
                <a href="?page=1">首页</a>  
        {% endifequal %}   
        {% if has_previous %}    
               <a href="?page={{ previous }}">上一页</a>  
        {% else %}    
               上一页   
        {% endif %}    
        {% if has_next %}   
               <a href="?page={{ next }}">下一页</a>  
        {% else %}   
               下一页   
        {% endif %}   
        {% ifequal page pages %}   
                末页   
         {% else %}   
               <a href="?page={{ pages }}">末页</a>  
         {% endifequal %}   
         &nbsp;&nbsp;   
          当前页：{{ page }}/{{ pages }}   
         &nbsp;&nbsp;   
         {% endif %}   
</div>  </td></tr>
      
      </tfoot>
    </table>
  </div>
{%endblock%}
